﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace uam_fps_game.Console
{

    delegate void CommandDelegate(List<string> args);
    class Command
    {
        string commandText;
        public string CommandText
        {
            get { return commandText; }
        }

        CommandDelegate commandFunction;

        public Command(string commandText, CommandDelegate commandFunction)
        {
            this.commandText = commandText;
            this.commandFunction = commandFunction;
        }

        public void DoFunction(List<string> args)
        {
            commandFunction(args);
        }
    }
}
